package cn.rkylin.oms.warehouse.returnStockin.dao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import cn.rkylin.core.IDataBaseFactory;
import cn.rkylin.oms.warehouse.returnStockin.domain.ReturnStockin;

/**
 * 退货入库单DAO
 * 
 * @author 齐涛
 * @version 1.0
 * @created 28-9-2017 10:51:30
 */
@Repository(value = "returnStockinDAO")
public class ReturnStockinDAOImpl implements ReturnStockinDAO {

    @Autowired
    protected IDataBaseFactory dao;

    /**
     * 更新退货入库单
     *
     * @param returnStockin
     *            退货入库单bean
     * @return 更新条数
     * @throws Exception
     *             异常
     */
    public int updateReturnStockin(ReturnStockin returnStockin) throws Exception {
        return dao.update("updateReturnStockin", returnStockin);
    }

}
